package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class OverridingMethodSpecification implements MethodSpecification {

    private int beginIndex;
    private int endIndex;
    private PartialMethodSpecification partialMethodSpecification;

    public OverridingMethodSpecification(int beginIndex, PartialMethodSpecification partialMethodSpecification) {
        this.beginIndex = beginIndex;
        this.endIndex = partialMethodSpecification.getEndIndex();
        this.partialMethodSpecification = partialMethodSpecification;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public PartialMethodSpecification getPartialMethodSpecification() {
        return partialMethodSpecification;
    }

}
